package com.nulstudio.cloud.common.domain.vo;

import com.nulstudio.cloud.common.entity.NulSupplier;
import org.springframework.lang.NonNull;

public final class SupplierVo {
    private int id;
    private String name;
    private String contact;
    private String phone;
    private String email;
    private String address;
    
    public SupplierVo() {
        
    }
    
    public SupplierVo(@NonNull NulSupplier supplier) {
        this(supplier.getId(), supplier.getName(), supplier.getContact(), supplier.getPhone(), supplier.getEmail(), supplier.getAddress());
    }

    public SupplierVo(int id, String name, String contact, String phone, String email, String address) {
        this.id = id;
        this.name = name;
        this.contact = contact;
        this.phone = phone;
        this.email = email;
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getContact() {
        return contact;
    }

    public String getPhone() {
        return phone;
    }

    public String getEmail() {
        return email;
    }

    public String getAddress() {
        return address;
    }

    private void setId(int id) {
        this.id = id;
    }

    private void setName(String name) {
        this.name = name;
    }

    private void setContact(String contact) {
        this.contact = contact;
    }

    private void setPhone(String phone) {
        this.phone = phone;
    }

    private void setEmail(String email) {
        this.email = email;
    }

    private void setAddress(String address) {
        this.address = address;
    }
}
